package com.dream.model;

import java.io.Serializable; 

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne; 
import javax.persistence.Table; 
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

/**
 * 教室的位置表状态表
 * @author Administrator
 *
 */
@Entity
@Table(name="sys_room_position")
public class Sys_Room_Position extends  AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Sys_Room sys_Room;
	private Integer x1;//行
	private Integer y1;//列
	private String state="0";///当前的状态 

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_Room getSys_Room()
	{
		return sys_Room;
	}
	public void setSys_Room(Sys_Room sys_Room)
	{
		this.sys_Room = sys_Room;
	}
	public Integer getX1()
	{
		return x1;
	}
	public void setX1(Integer x1)
	{
		this.x1 = x1;
	}
	public Integer getY1()
	{
		return y1;
	}
	public void setY1(Integer y1)
	{
		this.y1 = y1;
	}
	public String getState()
	{
		return state;
	}
	public void setState(String state)
	{
		this.state = state;
	}
	
	
}
